/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package sdk.weinxin.beans.kfmessage;

import com.fasterxml.jackson.annotation.JsonTypeName;
import sdk.weinxin.beans.message.Card;

/**
 * 
 * @author 张森
 */
@JsonTypeName(value = WxcardKfMessage.TYPE)
public class WxcardKfMessage extends KfMessage {
    
        public static final String TYPE = "wxcard";
        
    	public WxcardKfMessage() {
		this.setMsgtype(TYPE);
	}
    
	public WxcardKfMessage(String touser) {
		super(touser, TYPE);
	}
        
	public WxcardKfMessage(String touser, String cardId) {
		this(touser);
		this.wxcard = new Card(cardId);
	}

	private Card wxcard;

	public Card getWxcard() {
		return wxcard;
	}

	public void setWxcard(Card wxcard) {
		this.wxcard = wxcard;
	}
}

